import { combineReducers } from 'redux';
import types from '../types/detailType';
import text from './some';

const initState = {
    text:text
};

function todo (state = initState , action) {
    var copyState = Object.assign({},state);
    switch (action.type) {
        case types.GET_ALL:
            return copyState;
        default:
            return state;
    }
};

module.exports = combineReducers({todo:todo});